home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 January / chip-cd_2002_01.zip / 01 / Narzedzia systemowe / FinePrint pdfFactory 1.23 / nt / fppnt123.exe / MONITOR.INF < prev    next >
INI File  |  2001-08-08  |  9KB  |  254 lines

  1. [Identification]
  2.     OptionType = MONITOR
  3. [Options]
  4.     "FPP1:" = fppmon1
  5. [Identify]
  6.     read-syms Identification
  7.     set Status = STATUS_SUCCESSFUL
  8.     set Identifier = $(OptionType)
  9.     set Media = #("Source Media Descriptions", 1, 1)
  10.     Return $(Status) $(Identifier) $(Media)
  11. [ReturnOptions]
  12.     set Status = STATUS_FAILED
  13.     set OptionList = {}
  14.     set OptionTextList = {}
  15.     set LanguageList = ^(LanguagesSupported, 1)
  16.     Ifcontains(i) $($0) in $(LanguageList)
  17.         goto returnoptions
  18.     else
  19.         set Status = STATUS_NOLANGUAGE
  20.         goto finish_ReturnOptions
  21.     endif
  22.     returnoptions = +
  23.     set OptionList = ^(Options, 0)
  24.     set OptionTextList = ^(OptionsText$($0), 1)
  25.     set Status = STATUS_SUCCESSFUL
  26.     finish_ReturnOptions = +
  27.     Return $(Status) $(OptionList) $(OptionTextList)
  28. [InstallOption]
  29.     set Status = STATUS_FAILED
  30.     set Option = $($1)
  31.     set SrcDir = $($2)
  32.     set AddCopy = $($3)
  33.     set DoCopy = $($4)
  34.     set DoConfig = $($5)
  35.     set LanguageList = ^(LanguagesSupported, 1)
  36.     Ifcontains(i) $($0) in $(LanguageList)
  37.     else
  38.         set Status = STATUS_NOLANGUAGE
  39.         goto finish_InstallOption
  40.     endif
  41.     read-syms Strings$($0)
  42.     set OptionList = ^(Options, 0)
  43.     ifcontains $(Option) in $(OptionList)
  44.     else
  45.         goto finish_InstallOption
  46.     endif
  47.     set OptionList = ""
  48.     set MonitorOption = #(Options, $(Option), 1)
  49.     installtheoption = +
  50.     ifstr(i) $(AddCopy) == "YES"
  51.         install Install-AddCopyOption
  52.         ifstr(i) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS"
  53.             Debug-Output "Adding video files to copy list failed"
  54.             goto finish_InstallOption
  55.         endif
  56.     endif
  57.     ifstr(i) $(DoCopy) == "YES"
  58.         read-syms ProgressCopy$($0)
  59.         install Install-DoCopyOption
  60.         ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  61.             Debug-Output "Copying files failed"
  62.             goto finish_InstallOption
  63.         else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
  64.             set Status = STATUS_USERCANCEL
  65.             goto finish_InstallOption
  66.         endif
  67.     endif
  68.     ifstr(i) $(DoConfig) == "YES"
  69.         set MonitorPath = $(!STF_PRNMONITORPATH)"\"#(Files-PrinterMonitor, $(MonitorOption), 2)
  70.         LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(MonitorPath)
  71.         ifstr(i) $(STATUS) == NO
  72.             set OptionText = #(OptionsText$($0), $(Option), 1)
  73.             shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String4)$(OptionText)$(String5)
  74.             Debug-Output "Copying printer files failed"
  75.             goto finish_InstallOption
  76.         endif
  77.         install Install-Configure
  78.         ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  79.             Debug-Output "Installing printer monitor failed"
  80.             goto finish_InstallOption
  81.         else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
  82.             set Status = STATUS_USERCANCEL
  83.             goto finish_InstallOption
  84.         endif
  85.         ifstr(i) $(STATUS) != "ADDED"
  86.             set OptionText = #(OptionsText$($0), $(Option), 1)
  87.             ifstr(i) $(STATUS) == "PRESENT"
  88.                 shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String1)$(OptionText)$(String2)
  89.                 set Status = STATUS_SUCCESSFUL
  90.             else-ifstr(i) $(STATUS) == "DENIED"
  91.                 shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String6)
  92.             else
  93.                 shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String1)$(OptionText)$(String7)
  94.             endif
  95.             goto finish_InstallOption
  96.         endif
  97.     endif
  98.     set Status = STATUS_SUCCESSFUL
  99.     finish_InstallOption = +
  100.     Return $(Status)
  101. [Install-AddCopyOption]
  102.     set STF_VITAL = ""
  103.     set STF_OVERWRITE = "VERIFYSOURCEOLDER"
  104.     AddSectionKeyFileToCopyList Files-PrinterMonitor +
  105.                                 $(MonitorOption) +
  106.                                 $(SrcDir) +
  107.                                 $(!STF_PRNMONITORPATH)
  108.     AddSectionKeyFileToCopyList Files-PrinterMonitor +
  109.                                 "fppr132" +
  110.                                 $(SrcDir) +
  111.                                 $(!STF_PRNMONITORPATH)
  112.     exit
  113. [Install-DoCopyOption]
  114.     CopyFilesInCopyList
  115.     exit
  116. [Install-Configure]
  117.     set Model = $(Option)
  118.     set Monitor = #(Files-PrinterMonitor, $(MonitorOption), 2)
  119.     LibraryProcedure STATUS,$(!LIBHANDLE), SetupAddPrinterMonitor +
  120.                                                $(Model) +
  121.                                                $(!STF_PRNENVIRONM) +
  122.                                                $(Monitor) +
  123.                                                $(!STF_PRINTSERVER)
  124.     exit
  125. [ExternalInstallOption]
  126.     Set !G:DebugOutputControl = 0
  127.     set Exit_Code = $(!SETUP_ERROR_GENERAL)
  128.     set DrivesToFree = {}
  129.     install LoadSetupLibrary
  130.     ifstr(i) $(STF_LANGUAGE) == ""
  131.         goto end
  132.     else-ifstr(i) $(OPTION) == ""
  133.         goto end
  134.     else-ifstr(i) $(ADDCOPY) == ""
  135.         goto end
  136.     else-ifstr(i) $(DOCOPY) == ""
  137.         goto end
  138.     else-ifstr(i) $(DOCONFIG) == ""
  139.         goto end
  140.     endif
  141.     read-syms PlatformID
  142.     read-syms ProductType
  143.     ifstr(i) $(STF_PLATFORM) == $(PlatformID_I386)
  144.         set STF_PRNPLATFORM = "w32x86"
  145.         set STF_PRNENVIRONM = "Windows NT x86"
  146.     else-ifstr(i) $(STF_PLATFORM) == $(PlatformID_Mips)
  147.         set STF_PRNPLATFORM = "w32mips"
  148.         set STF_PRNENVIRONM = "Windows NT R4000"
  149.     else-ifstr(i) $(STF_PLATFORM) == $(PlatformID_PPC)
  150.         set STF_PRNPLATFORM = "w32ppc"
  151.         set STF_PRNENVIRONM = "Windows NT PowerPC"
  152.     else-ifstr(i) $(STF_PLATFORM) == $(PlatformID_Alpha)
  153.         set STF_PRNPLATFORM = "w32alpha"
  154.         set STF_PRNENVIRONM = "Windows NT Alpha_AXP"
  155.     else
  156.         goto end
  157.     endif
  158.     read-syms UiVars
  159.     detect UiVars
  160.     read-syms Strings$(STF_LANGUAGE)
  161.     ifstr(i) $(STF_SRCDIR) != $(STF_CWDDIR)
  162.         goto skip_asksource
  163.     endif
  164.     set STF_SRCDIR = A:\
  165.     shell "registry.inf" GetNTSource
  166.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  167.     else-ifstr(i) $($R0) != STATUS_SUCCESSFUL
  168.     else
  169.         set STF_SRCDIR = $($R1)
  170.     endif
  171.     skip_asksource = +
  172.     LibraryProcedure IsFullPath, $(!LIBHANDLE), CheckPathFullPathSpec $(STF_PRNMONITORPATH)
  173.     ifstr(i) $(IsFullPath) == "NO"
  174.         LibraryProcedure STATUS, $(!LIBHANDLE), ProcessForUNC $(STF_PRNMONITORPATH)
  175.         ifstr(i) $(STATUS) == "ERROR"
  176.             shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String3)
  177.             goto end
  178.         else-ifstr(i) $(STATUS) == "NOT-UNC"
  179.             shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String3)
  180.             goto end
  181.         else-ifstr(i) $(STATUS) == "UNC-FAILCONNECT"
  182.             shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String3)
  183.             goto end
  184.         else
  185.             set STF_PRNMONITORPATH = $(STATUS)
  186.         endif
  187.     endif
  188.     shell "" InstallOption $(STF_LANGUAGE) $(OPTION) $(STF_SRCDIR) $(ADDCOPY) $(DOCOPY) $(DOCONFIG)
  189.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  190.         Debug-Output "Execing InstallOption failed"
  191.         goto end
  192.     endif
  193.     ifstr(i) $($R0) == STATUS_SUCCESSFUL
  194.         set Exit_Code = $(!SETUP_ERROR_SUCCESS)
  195.     else-ifstr(i) $($R0) == STATUS_USERCANCEL
  196.         set Exit_Code = $(!SETUP_ERROR_USERCANCEL)
  197.     endif
  198.     end =+
  199.     ForListDo $(DrivesToFree)
  200.         LibraryProcedure STATUS,$(!LIBHANDLE), DeleteNetConnection $($) "TRUE"
  201.     EndForListDo
  202.     install FreeSetupLibrary
  203.     exit
  204. [LoadSetupLibrary]
  205.     LoadLibrary "x" $(!STF_CWDDIR)setupdll.dll !LIBHANDLE
  206.     exit
  207. [FreeSetupLibrary]
  208.     FreeLibrary $(!LIBHANDLE)
  209.     exit
  210. [PlatformID]
  211.     PlatformID_PPC = ppc
  212.     PlatformID_I386 = I386
  213.     PlatformID_Mips = Mips
  214.     PlatformID_Alpha  = Alpha
  215. [UiVars]
  216.     STF_CONTROLSET = CurrentControlSet
  217.     STF_WINDOWSPATH = "" ? $(!LIBHANDLE) GetWindowsNtDir
  218.     STF_WINDOWSSYSPATH = "" ? $(!LIBHANDLE) GetWindowsNtSysDir
  219.     STF_PRNMONITORPATH = "" ? $(!LIBHANDLE) GetWindowsNtSysDir
  220. [Source Media Descriptions]
  221.     1 = "FinePrint for Windows NT/2000 Install Disk"
  222. [Signature]
  223.     FileType = MICROSOFT_FILE
  224. [GetSignature]
  225.     read-syms Signature
  226.     return $(FileType)
  227. [ProductType]
  228.     STF_PRODUCT  = Winnt
  229.     STF_PLATFORM = I386
  230. [Files-PrinterMonitor]
  231.     fppmon1 = 1, FPPMON1.DLL, SIZE=999
  232.     fppr132 = 1, FPPR132.DLL, SIZE=999
  233. [LanguagesSupported]
  234.     ENG
  235. [OptionsTextENG]
  236.     "FPP1:" = "FPP1:"
  237. [StringsENG]
  238.     String1 = "The monitor "
  239.     String2 = " is already installed."
  240.     String3 = "Failed to connect to the print server."
  241.     String4 = "The monitor files for the selected monitor "
  242.     String5 = " couldn't be copied.  Failed to install the monitor."
  243.     String6 = "Access is denied. You must be logged on as a member of the Administrators "+
  244.               "group to carry out this operation."
  245.     String7 = " could not be installed."
  246. [ProgressCopyENG]
  247.     ProCaption   = "Windows NT Setup"
  248.     ProCancel    = "Cancel"
  249.     ProCancelMsg = "Windows NT is not correctly installed.  Are you sure you want "+
  250.                    "to cancel copying files?"
  251.     ProCancelCap = "Setup Message"
  252.     ProText1     = "Copying:"
  253.     ProText2     = "To:"
  254.